<!--盒子模型-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>盒子模型</title>
    <style>
        .box1,.box2,.box3,.box4,.box5,.box6{
            width: 100px;
            height: 100px;
            border-top: solid 3px orange;
            border-bottom: solid 1px gray;
            display: inline-block;
            margin: 0px;
            text-align: center;
            line-height: 100px;
            font-size: 16px; 
        }
        body{
            font-size: 0px;
            text-align: center;
        }
        .box1:hover{
            background-color: gray;
        }
        .box2:hover{
            background-color: gray;
        }
        .box3:hover{
            background-color: gray;
        }
        .box4:hover{
            background-color: gray;
        }
        .box5:hover{
            background-color: gray;
        }
        .box6:hover{
            background-color: gray;
        }
    </style>
</head>
<body>
    <div class="box1">首页</div>
    <div class="box2">手机新浪网</div>
    <div class="box3">移动客户端</div>
    <div class="box4">博客</div>
    <div class="box5">微博</div>
    <div class="box6">关注我</div>
</body>
</html>
